package com.diycode.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.diycode.utils.Entity;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author diycode
 * @since 2024-04-17
 */
public class Users extends Entity {

    private static final long serialVersionUID = 1L;

    @TableId(type= IdType.AUTO)
    private Integer userId;

    private String userName;

    private String passWord;

    private String phone;

    private byte[] avatar;

    @TableField(exist = false)
    private String avatarPic;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public byte[] getAvatar() {
        return avatar;
    }

    public void setAvatar(byte[] avatar) {
        this.avatar = avatar;
    }

    public String getAvatarPic() {
        return avatarPic;
    }

    public void setAvatarPic(String avatarPic) {
        this.avatarPic = avatarPic;
    }

    @Override
    public String toString() {
        return "Users{" +
            "userId = " + userId +
            ", userName = " + userName +
            ", passWord = " + passWord +
            ", phone = " + phone +
        "}";
    }
}
